import java.util.ArrayList;
import java.util.Collection;

public class Function {
    public <T> void copyArrayToCollection(T[] a, Collection<T> c){
        for(T t : a){
            c.add(t);
        }
    }
    //------------------------------------------------------------
    public static void copyAll(Collection<? extends Fruit> collection,
                               Collection<? extends Fruit> out) {

    }
    //------------------------------------------------------------
    public static <E extends Fruit & Comparable<E>> void copy(
                                     Collection<E> collection, E elem){
        Collection<E> out = new ArrayList<>();
        for(E e : collection){
            if(e.compareTo(elem)>0){
                out.add(e);
            }
        }
    }
    //------------------------------------------------------------
}//End class Function
